<html>
<head><meta charset="utf-8"><title>compile_with_exec does not seem to call the custom executor · t-cargo · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/index.html">t-cargo</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/compile_with_exec.20does.20not.20seem.20to.20call.20the.20custom.20executor.html">compile_with_exec does not seem to call the custom executor</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="226629007"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/compile_with_exec%20does%20not%20seem%20to%20call%20the%20custom%20executor/near/226629007" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/compile_with_exec.20does.20not.20seem.20to.20call.20the.20custom.20executor.html#226629007">(Feb 17 2021 at 08:55)</a>:</h4>
<p>I'm using this with a custom executor with a panic!() as <code>exec()</code> body and it does not trigger.</p>
<div class="codehilite"><pre><span></span><code>      let exec: Arc&lt;dyn Executor&gt; = Arc::new(Exec::default());
      let _r = ops::compile_with_exec(ws, &amp;compile_opts, &amp;exec)?;
</code></pre></div>



<a name="226638488"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/compile_with_exec%20does%20not%20seem%20to%20call%20the%20custom%20executor/near/226638488" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/compile_with_exec.20does.20not.20seem.20to.20call.20the.20custom.20executor.html#226638488">(Feb 17 2021 at 10:35)</a>:</h4>
<p>I tried to put a breakpoint on <code>on_stderr_line</code> and it is called. Sadly lldb does not find the dependencies sources automatically =E</p>



<a name="226642272"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/compile_with_exec%20does%20not%20seem%20to%20call%20the%20custom%20executor/near/226642272" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/compile_with_exec.20does.20not.20seem.20to.20call.20the.20custom.20executor.html#226642272">(Feb 17 2021 at 11:14)</a>:</h4>
<p>somehow a cargo clean got everything sorted out. I wonder why it did not pick up the changes though.</p>



<a name="226648937"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/compile_with_exec%20does%20not%20seem%20to%20call%20the%20custom%20executor/near/226648937" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/compile_with_exec.20does.20not.20seem.20to.20call.20the.20custom.20executor.html#226648937">(Feb 17 2021 at 12:28)</a>:</h4>
<p>Now I see why it is not working as intended. If the binaries are fresh it does not try to link again but just replays the notes from a cache</p>



<a name="226650174"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/compile_with_exec%20does%20not%20seem%20to%20call%20the%20custom%20executor/near/226650174" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/compile_with_exec.20does.20not.20seem.20to.20call.20the.20custom.20executor.html#226650174">(Feb 17 2021 at 12:40)</a>:</h4>
<p>Is there a good way to tell if <code>ops::compile*()</code> made a new build or not?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>